package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bbzn.device.client.dao.audit.AuditNoticeMapper;
import com.bbzn.device.client.dataobject.AuditNotice;
import java.util.List;
import com.bbzn.device.client.service.AuditNoticeService;

@Service
public class AuditNoticeServiceImpl implements AuditNoticeService {

    @Resource
    private AuditNoticeMapper auditNoticeMapper;

    @Override
    public int deleteByPrimaryKey(Long noticeId) {
        return auditNoticeMapper.deleteByPrimaryKey(noticeId);
    }

    @Override
    public int insert(AuditNotice record) {
        return auditNoticeMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(AuditNotice record) {
        return auditNoticeMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(AuditNotice record) {
        return auditNoticeMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(AuditNotice record) {
        return auditNoticeMapper.insertSelective(record);
    }

    @Override
    public AuditNotice selectByPrimaryKey(Long noticeId) {
        return auditNoticeMapper.selectByPrimaryKey(noticeId);
    }

    @Override
    public int updateByPrimaryKeySelective(AuditNotice record) {
        return auditNoticeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AuditNotice record) {
        return auditNoticeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<AuditNotice> findByAll(AuditNotice auditNotice) {
        return auditNoticeMapper.findByAll(auditNotice);
    }

    @Override
    public int updateBatch(List<AuditNotice> list) {
        return auditNoticeMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<AuditNotice> list) {
        return auditNoticeMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<AuditNotice> list) {
        return auditNoticeMapper.batchInsert(list);
    }

    @Override
    public AuditNotice findOneByNoticeId(Long noticeId) {
        return auditNoticeMapper.findOneByNoticeId(noticeId);
    }

    @Override
    public AuditNotice findOneByProcessFlowId(Long processFlowId) {
        return auditNoticeMapper.findOneByProcessFlowId(processFlowId);
    }
}


